package com.slm.report;

import android.os.Bundle;
import android.os.Handler;

import androidx.annotation.Nullable;

import com.blankj.utilcode.util.ActivityUtils;
import com.blankj.utilcode.util.BarUtils;
import com.slm.mylibrary.base.BaseActivity;
import com.slm.report.ui.HomePageActivity;

/**
 * @ProjectName: My Application
 * @Package: com.slm.report
 * @ClassName: SplashActivity
 * @Description: java类作用描述
 * @Author: 王丹丹
 * @CreateDate: 2020/5/25 16:09
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/25 16:09
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class SplashActivity extends BaseActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        BarUtils.setStatusBarVisibility(this, false);
        setContentView(R.layout.activity_splash);
        new Handler().postDelayed(new Runnable() {

            @Override
            public void run() {
                enterHomeActivity();
            }
        }, 1500);
    }

    private void enterHomeActivity() {
        ActivityUtils.startActivity(HomePageActivity.class);
        finish();
    }
}
